package com.whfc.fvs.enums;

/**
 * @Description: 视频设备类型
 * @author: qzexing
 * @version: 1.0
 * @date: 2020/5/12 20:49
 */
public enum FvsDeviceType {

    IPC(0, "网络摄像头"),

    DVR(1, "硬盘录像机");


    private Integer value;

    private String desc;

    FvsDeviceType(Integer value, String desc) {
        this.value = value;
        this.desc = desc;
    }

    public Integer getValue() {
        return value;
    }

    public String getDesc() {
        return desc;
    }

    public static FvsDeviceType parseValue(Integer value) {
        switch (value) {
            case 0:
                return IPC;
            case 1:
                return DVR;
            default:
                return null;
        }
    }
}
